package java44th.group.bean.admin.bo.coupon;

import java44th.group.bean.common.BasePageInfo;
import lombok.NoArgsConstructor;

/**
 * @Aurhor: 帅的一批
 * @CreateAt: 2022/10/12 15:04
 * @Description:
 * @PACKAGE_NAME： java44th.group.bean.admin.bo.coupon
 */

//@Data
//@AllArgsConstructor
@NoArgsConstructor
public class CouponListBo extends BasePageInfo {
    String name;
    Integer status;
    Integer type;

    public CouponListBo(String name, Integer status, Integer type) {
        this.name = name;
        this.status = status;
        this.type = type;
    }

    public CouponListBo(Integer limit, Integer page, String order, String sort, String name, Integer status, Integer type) {
        super(limit, page, order, sort);
        this.name = name;
        this.status = status;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    //    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (o == null || getClass() != o.getClass()) return false;
//        if (!super.equals(o)) return false;
//
//        CouponListBo that = (CouponListBo) o;
//
//        if (name != null ? !name.equals(that.name) : that.name != null) return false;
//        if (status != null ? !status.equals(that.status) : that.status != null) return false;
//        return type != null ? type.equals(that.type) : that.type == null;
//    }
//
//    @Override
//    public int hashCode() {
//        int result = super.hashCode();
//        result = 31 * result + (name != null ? name.hashCode() : 0);
//        result = 31 * result + (status != null ? status.hashCode() : 0);
//        result = 31 * result + (type != null ? type.hashCode() : 0);
//        return result;
//    }
}
